{literal}
<h2>Functions</h2>
Here are functions that are useful if you are working with DomFramework
<br>
<br>

<h2>gotoUrl</h2>
Sends user to url. Uses header if possible, otherwise javascript. 
<pre class="code">
&lt;?php
gotoUrl('http://samplesite.com');
?&gt;
</pre>




<h2>array2String</h2>
Converts array to code string
<pre class="code">
&lt;?php
$array  = array(
	array(
		'a' => 'b',
		'c' => 'd',
	),
	'e' => 'f',
	'g' => 'h',
	'i',
	'j'
);
echo array2String( $array );
// echoes array( 0=> array( 'a'=>'b','c'=>'d'),'e'=>'f','g'=>'h',1=>'i',2=>'j') 
?&gt;
</pre>








<h2>intArray</h2>
Creates array which keys and values are numbers in range.
<pre class="code">
&lt;?php
debug(intArray(3,7));
/*
Array
(
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
)
*/
?&gt;
</pre>






<h2>arrayMerge</h2>
Merges two arrays and maintains keys (index associations).
<pre class="code">
&lt;?php
arrayMerge( $a, $b );
?&gt;
</pre>






<h2>arrayFlipTrue</h2>
Flipts array and sets all values to true
<pre class="code">
&lt;?php
$array = array(0 => 'a', 1=>'b', 2=>'c');
$new  = arrayFlipTrue($array);
debug($new);
/*
Array
(
    [a] => 1
    [b] => 1
    [c] => 1
)
*/
?&gt;
</pre>

{/literal}